//
// Created by 吴锐 on 2022/2/28.
//

#include "iostream"

using namespace std;

template<class NameType, class AgeType>
class Person {
public:
    NameType m_Name;
    AgeType m_Age;

    Person(NameType name, AgeType age){
        this->m_Name = name;
        this->m_Age = age;
    }

    void showPerson(){
        cout << "name: " << this->m_Name << " age: " << this->m_Age << endl;
    }
};

void test01(){
    Person<string, int> p1("吴锐", 18);
    p1.showPerson();
}

int main(){
    test01();
    return 0;
}